package utils;

import java.util.ArrayList;

public class ArrayUtils {
    public static <T> ArrayList<T> reverse(ArrayList<T> originArrayList) {
        ArrayList<T> ret = new ArrayList<>();
        for (int i = originArrayList.size() - 1; i >= 0; i--) {
            ret.add(originArrayList.get(i));
        }
        return ret;
    }
}
